import java.util.Scanner;

public class StringT1 {
    public static void main(String[] args) {
        //判断一个字符串的大写，小写字母和数字字符的数量
        Scanner sc=new Scanner(System.in);
        System.out.println("Please Input number:");
        String str=sc.next();
        int big=0,small=0,number=0;
        for (int i = 0; i < str.length(); i++) {//i表示字符串的索引
            char x=str.charAt(i);
            if('a'<=x && x<='z'){
                big++;
        }
            else if ('A'<=x && x<='Z'){
                small++;
            }
            else if(48<=x && x<='9'){
                number++;//char 类型的变量运算时会自动转为int型，查找ASCII码

            }

        }
        System.out.println("大写字母有"+big+"个，小写字母有"+small+"个，数字有"+number+"个");
    }
